.cart-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.cart-container h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
}

.cart-items {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 1rem;
}

.item-details {
    flex: 1;
}

.item-name {
    font-weight: bold;
    color: #333;
    margin-bottom: 0.5rem;
}

.item-price {
    color: #007bff;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quantity-btn {
    background-color: #95a5a6;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.quantity-btn:hover {
    background-color: #7f8c8d;
}

.quantity {
    font-size: 16px;
    min-width: 30px;
    text-align: center;
    color: #333;
}

.remove-btn {
    background-color: #95a5a6;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 3px;
}

.remove-btn:hover {
    background-color: #7f8c8d;
}

.cart-summary {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total {
    font-size: 1.2rem;
    font-weight: bold;
}

.checkout-btn {
    background-color: #4a90e2;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.settlement{
    text-decoration: none;
    color: white;
}

.checkout-btn:hover {
    background-color: #357abd;
}

.empty-cart {
    text-align: center;
    padding: 2rem;
    color: #666;
} 

:root {
     --primary: #3498db;
     --primary-dark: #2980b9;
     --secondary: #e74c3c;
     --accent: #f39c12;
     --light: #ecf0f1;
     --dark: #2c3e50;
     --gray: #95a5a6;
     --success: #27ae60;
     --card-bg: rgba(255, 255, 255, 0.85);
     --glass-bg: rgba(255, 255, 255, 0.15);
     --shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
     --transition: all 0.3s ease;
 }

 * {
     margin: 0;
     padding: 0;
     box-sizing: border-box;
     font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
 }

 body {
     background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
     color: var(--dark);
     min-height: 100vh;
     position: relative;
     overflow-x: hidden;
 }

 body::before {
     content: '';
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background: url('') repeat;
     opacity: 0.1;
     z-index: -1;
 }

 /* 导航栏样式 */
 header {
     background-color: var(--card-bg);
     backdrop-filter: blur(10px);
     -webkit-backdrop-filter: blur(10px);
     box-shadow: var(--shadow);
     position: sticky;
     top: 0;
     z-index: 1000;
     padding: 0.5rem 2rem;
 }

 nav {
     max-width: 1400px;
     margin: 0 auto;
     display: flex;
     justify-content: space-between;
     align-items: center;
 }

 .logo-container {
     display: flex;
     align-items: center;
     gap: 15px;
 }

 .logo {
     height: 60px;
     width: auto;
     object-fit: contain;
 }

 .brand-name {
     font-size: 1.8rem;
     font-weight: 700;
     color: var(--dark);
     letter-spacing: -0.5px;
 }

 .brand-name span {
     color: var(--primary);
 }

 .nav-links {
     display: flex;
     gap: 1.5rem;
     align-items: center;
 }

 .nav-links a {
     color: var(--dark);
     text-decoration: none;
     font-weight: 500;
     transition: var(--transition);
     display: flex;
     align-items: center;
     gap: 8px;
     padding: 10px 15px;
     border-radius: 50px;
 }

 .nav-links a:hover {
     background-color: rgba(52, 152, 219, 0.1);
     color: var(--primary);
 }

 .nav-links a.active {
     background-color: var(--primary);
     color: white;
 }

 .user-info {
     position: relative;
     display: flex;
     align-items: center;
     gap: 10px;
     cursor: pointer;
     padding: 5px 10px;
     border-radius: 50px;
     transition: var(--transition);
 }

 .user-info:hover {
     background-color: rgba(52, 152, 219, 0.1);
 }

 .user-avatar {
     width: 40px;
     height: 40px;
     border-radius: 50%;
     overflow: hidden;
     border: 2px solid var(--primary);
 }

 .user-avatar img {
     width: 100%;
     height: 100%;
     object-fit: cover;
 }

 .avatar-dropdown {
     position: absolute;
     top: 100%;
     right: 0;
     background-color: var(--card-bg);
     backdrop-filter: blur(10px);
     -webkit-backdrop-filter: blur(10px);
     box-shadow: var(--shadow);
     border-radius: 10px;
     padding: 10px 0;
     width: 180px;
     z-index: 100;
     opacity: 0;
     visibility: hidden;
     transform: translateY(10px);
     transition: var(--transition);
 }

 .user-info:hover .avatar-dropdown {
     opacity: 1;
     visibility: visible;
     transform: translateY(0);
 }

 .dropdown-item {
     display: block;
     padding: 10px 20px;
     color: var(--dark);
     text-decoration: none;
     transition: var(--transition);
     display: flex;
     align-items: center;
     gap: 10px;
 }

 .dropdown-item:hover {
     background-color: rgba(52, 152, 219, 0.1);
     color: var(--primary);
 }

 .hamburger {
     display: none;
     cursor: pointer;
     font-size: 1.5rem;
 }

 /* 页脚样式 */
 footer {
     background: var(--dark);
     color: white;
     padding: 4rem 2rem 2rem;
     margin-top: 4rem;
 }

 .footer-content {
     max-width: 1400px;
     margin: 0 auto;
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
     gap: 3rem;
 }

 .footer-col h3 {
     font-size: 1.4rem;
     margin-bottom: 1.5rem;
     position: relative;
     padding-bottom: 10px;
 }

 .footer-col h3::after {
     content: '';
     position: absolute;
     bottom: 0;
     left: 0;
     width: 50px;
     height: 3px;
     background: var(--primary);
 }

 .footer-col p {
     margin-bottom: 1.5rem;
     line-height: 1.8;
     color: #ecf0f1;
 }

 .footer-links {
     list-style: none;
 }

 .footer-links li {
     margin-bottom: 12px;
 }

 .footer-links a {
     color: #bdc3c7;
     text-decoration: none;
     transition: var(--transition);
     display: flex;
     align-items: center;
     gap: 10px;
 }

 .footer-links a:hover {
     color: var(--primary);
     transform: translateX(5px);
 }

 .social-links {
     display: flex;
     gap: 15px;
     margin-top: 20px;
 }

 .social-links a {
     display: flex;
     align-items: center;
     justify-content: center;
     width: 40px;
     height: 40px;
     background: rgba(255, 255, 255, 0.1);
     border-radius: 50%;
     color: white;
     transition: var(--transition);
 }

 .social-links a:hover {
     background: var(--primary);
     transform: translateY(-5px);
 }

 .copyright {
     text-align: center;
     padding-top: 2rem;
     margin-top: 3rem;
     border-top: 1px solid rgba(255, 255, 255, 0.1);
     color: #bdc3c7;
     font-size: 0.9rem;
 }

 /* 响应式设计 */
 @media (max-width: 992px) {
     .carousel-container {
         height: 350px;
     }

     .slide-content {
         bottom: 30px;
         left: 30px;
     }

     .slide-content h2 {
         font-size: 2rem;
     }
 }

 @media (max-width: 768px) {
     .hamburger {
         display: block;
     }

     .nav-links {
         position: fixed;
         top: 80px;
         left: 0;
         background: var(--card-bg);
         backdrop-filter: blur(10px);
         width: 100%;
         flex-direction: column;
         align-items: center;
         padding: 2rem 0;
         gap: 1.5rem;
         box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
         clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
         transition: var(--transition);
     }

     .nav-links.active {
         clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
     }

     .carousel-container {
         height: 300px;
     }

     .slide-content {
         bottom: 20px;
         left: 20px;
         max-width: 80%;
     }

     .slide-content h2 {
         font-size: 1.6rem;
     }

     .slide-content p {
         font-size: 1rem;
     }
 }

 @media (max-width: 576px) {
     header {
         padding: 0.5rem 1rem;
     }

     .carousel-container {
         height: 250px;
     }

     .carousel-btn {
         width: 40px;
         height: 40px;
         font-size: 1rem;
     }

     .section-title {
         font-size: 2rem;
     }

     .section-subtitle {
         font-size: 1rem;
     }
 }
 /* 头部样式 */
  header {
     background-color: var(--card-bg);
     backdrop-filter: blur(10px);
     -webkit-backdrop-filter: blur(10px);
     box-shadow: var(--shadow);
     position: sticky;
     top: 0;
     z-index: 1000;
     padding: 0.5rem 2rem;
 }

 nav {
     max-width: 1400px;
     margin: 0 auto;
     display: flex;
     justify-content: space-between;
     align-items: center;
 }

 .logo-container {
     display: flex;
     align-items: center;
     gap: 15px;
 }

 .logo {
     height: 60px;
     width: auto;
     object-fit: contain;
 }

 .brand-name {
     font-size: 1.8rem;
     font-weight: 700;
     color: var(--dark);
     letter-spacing: -0.5px;
 }

 .brand-name span {
     color: var(--primary);
 }

 .nav-links {
     display: flex;
     gap: 1.5rem;
     align-items: center;
 }

 .nav-links a {
     color: var(--dark);
     text-decoration: none;
     font-weight: 500;
     transition: var(--transition);
     display: flex;
     align-items: center;
     gap: 8px;
     padding: 10px 15px;
     border-radius: 50px;
 }

 .nav-links a:hover {
     background-color: rgba(52, 152, 219, 0.1);
     color: var(--primary);
 }

 .nav-links a.active {
     background-color: var(--primary);
     color: white;
 }

 .user-info {
     position: relative;
     display: flex;
     align-items: center;
     gap: 10px;
     cursor: pointer;
     padding: 5px 10px;
     border-radius: 50px;
     transition: var(--transition);
 }

 .user-info:hover {
     background-color: rgba(52, 152, 219, 0.1);
 }
 .user-info:hover {
     background-color: rgba(52, 152, 219, 0.1);
 }

 .user-avatar {
     width: 40px;
     height: 40px;
     border-radius: 50%;
     overflow: hidden;
     border: 2px solid var(--primary);
 }
 .user-avatar {
     width: 40px;
     height: 40px;
     border-radius: 50%;
     overflow: hidden;
     border: 2px solid var(--primary);
 }

 .user-avatar img {
     width: 100%;
     height: 100%;
     object-fit: cover;
 }
 .user-avatar img {
     width: 100%;
     height: 100%;
     object-fit: cover;
 }

 .avatar-dropdown {
     position: absolute;
     top: 100%;
     right: 0;
     background-color: var(--card-bg);
     backdrop-filter: blur(10px);
     -webkit-backdrop-filter: blur(10px);
     box-shadow: var(--shadow);
     border-radius: 10px;
     padding: 10px 0;
     width: 180px;
     z-index: 100;
     opacity: 0;
     visibility: hidden;
     transform: translateY(10px);
     transition: var(--transition);
 }
 .avatar-dropdown {
     position: absolute;
     top: 100%;
     right: 0;
     background-color: var(--card-bg);
     backdrop-filter: blur(10px);
     -webkit-backdrop-filter: blur(10px);
     box-shadow: var(--shadow);
     border-radius: 10px;
     padding: 10px 0;
     width: 180px;
     z-index: 100;
     opacity: 0;
     visibility: hidden;
     transform: translateY(10px);
     transition: var(--transition);
 }

 .user-info:hover .avatar-dropdown {
     opacity: 1;
     visibility: visible;
     transform: translateY(0);
 }
 .user-info:hover .avatar-dropdown {
     opacity: 1;
     visibility: visible;
     transform: translateY(0);
 }

 .dropdown-item {
     display: block;
     padding: 10px 20px;
     color: var(--dark);
     text-decoration: none;
     transition: var(--transition);
     display: flex;
     align-items: center;
     gap: 10px;
 }
 .dropdown-item {
     display: block;
     padding: 10px 20px;
     color: var(--dark);
     text-decoration: none;
     transition: var(--transition);
     display: flex;
     align-items: center;
     gap: 10px;
 }

 .dropdown-item:hover {
     background-color: rgba(52, 152, 219, 0.1);
     color: var(--primary);
 }
 .dropdown-item:hover {
     background-color: rgba(52, 152, 219, 0.1);
     color: var(--primary);
 }

 .hamburger {
     display: none;
     cursor: pointer;
     font-size: 1.5rem;
 }
 .hamburger {
     display: none;
     cursor: pointer;
     font-size: 1.5rem;
 }

 .item-specs {
  color: #888;
  font-size: 13px;
  margin-left: 8px;
}